/**
 * @author Lu Ruotong
 * @date 2021/9/28 18:24
 */

import java.util.*;
public class Map {
    public static void main(String[] args) {
        int [] array = {1, 2, 3, 2, 4, 5, 7, 10, 1, 5, 3, 5, 8, 9, 4, 5, 2, 3};
        // System.out.println("原数组的长度为:"+array.length);
        java.util.Map<Integer, String> map = new HashMap<Integer, String>();
//        Map<key,value>
        for (int i = 0; i <array.length ; i++) {
            map.put(array[i],"");
        }
        for(Integer s : map.keySet()){
//            s:key
            System.out.println("key的值为："+ s);
        }
    }
}
